//
//  PreDeTableViewCell.m
//  艾听歌
//
//  Created by dllo on 16/5/20.
//  Copyright © 2016年 dllo. All rights reserved.
//

#import "PreDeTableViewCell.h"

@implementation PreDeTableViewCell


- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        self.pic = [[UIImageView alloc] init];
//        self.pic.backgroundColor = [UIColor redColor];
        [self.contentView addSubview:self.pic];
        
        self.timeName = [[UILabel alloc] init];

        [self.contentView addSubview:self.timeName];
        
        
        self.label = [[UILabel alloc] init];
//        self.label.backgroundColor = [UIColor blackColor];
        [self.contentView addSubview:self.label];
        
        self.titleName = [[UILabel alloc] init];
//        self.titleName.backgroundColor = [UIColor purpleColor];
        [self.contentView addSubview:self.titleName];
    }
    return self;
}

- (void)layoutSubviews
{
    [super layoutSubviews];
    self.pic.frame = CGRectMake(5, 5, WIDTH - 10, 150);
    self.titleName.frame = CGRectMake(5, 158, WIDTH - 120, 20);
    self.label.frame = CGRectMake(5, 180, WIDTH - 120, 20);
    self.timeName.frame = CGRectMake(WIDTH - 100, 160, WIDTH / 4, 20);
    self.label.font = [UIFont systemFontOfSize:14];
}
- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
